<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="{{meta_description|striptags}}"/>
{% if titletag %}
<title>LMFDB - {{ titletag|striptags }}</title>
{% else %}
<title>LMFDB{% if title %} - {{ title|striptags }}{% endif %}  </title>
{% endif %}
<link href="{{ url_for('css') }}" rel="stylesheet" type="text/css" /> 

<script type="text/javascript" src="{{ url_for('static', filename='jquery.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='jquery.watermark.min.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='lmfdb.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename='showdown.min.js') }}"></script>

<script type="text/javascript" src="{{ url_for('static', filename='jquery.dataTables.js') }}"></script> 
<script type="text/javascript" src="{{ url_for('static', filename='jquery.dataTables.plugins.js') }}"></script> 
<script type="text/javascript" src="{{ url_for('static', filename='jquery-ui-1.8.14.custom.min.js') }}"></script> 
<script type="text/javascript" src="https://www.google.com/jsapi"></script> 
 
<link rel="stylesheet" href="{{ url_for('static', filename='jquery-ui-1.8.14.custom.css') }}" type="text/css"/> 

<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
  jax: ["input/TeX","output/HTML-CSS"],
  TeX: {
        Macros: {
	  C: '{\\mathbb{C}}',
	  R: '{\\mathbb{R}}',
	  Q: '{\\mathbb{Q}}',
	  Z: '{\\mathbb{Z}}',
	  F: '{\\mathbb{F}}',
	  SL: '{\\textrm{SL}}',
	  GL: '{\\textrm{GL}}',
	  PSL: '{\\textrm{PSL}}',
	  PGL: '{\\textrm{PGL}}',
	  Sp: '{\\textrm{Sp}}',
	  GSp: '{\\textrm{GSp}}',
//	  N: '{\\mathbb{N}}',
	},
     },
  tex2jax: {
    inlineMath: [['$','$'],["\\(","\\)"]],
    processEscapes: true,
  },
  "HTML-CSS": { scale: 85 },
  menuSettings: { zscale: "150%", zoom: "Double-Click" }
});
</script>
{#- <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script> -#}
<script type="text/javascript" src="http://www.lmfdb.org/MathJax/MathJax.js"></script>
{#- append this: ?config=default if the script complains about a missing config -#}

{#- the defs for the knowls, need to be after mathjax, before analytics -#}
{%- include "knowl-defs.html" -%}
{%- from "knowl-defs.html" import KNOWL with context -%}
{%- from "knowl-defs.html" import KNOWL_LINK with context -%}
{%- from "knowl-defs.html" import KNOWL_INC with context -%}
{%- from "knowl-defs.html" import TEXT_DATA with context -%}

<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-19138192-1']);
_gaq.push(['_setDomainName', 'none']);
_gaq.push(['_setAllowLinker', true]);
_gaq.push(['_trackPageview']);
_gaq.push(['_trackPageLoadTime']);

(function() {
 var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>

{% if body_class == "checklist" -%}
<base target="page">
{%- endif %}
</head>

<body class="{{ body_class }}">
{% block body -%}{%- endblock body %}
</body>
</html>
